﻿/*Copyright by Zak - http://www.xnamag.de/forum/viewtopic.php?t=1062 */
namespace MECopter.Joystick
{
    public enum JoystickButtons : uint
    {
        BUTTON01 = 0x1,
        BUTTON02 = 0x2,
        BUTTON03 = 0x4,
        BUTTON04 = 0x8,
        BUTTON05 = 0x10,
        BUTTON06 = 0x20,
        BUTTON07 = 0x40,
        BUTTON08 = 0x80,
        BUTTON09 = 0x100,
        BUTTON10 = 0x200,
        BUTTON11 = 0x400,
        BUTTON12 = 0x800,
        BUTTON13 = 0x1000,
        BUTTON14 = 0x2000,
        BUTTON15 = 0x4000,
        BUTTON16 = 0x8000,
        BUTTON17 = 0x10000,
        BUTTON18 = 0x20000,
        BUTTON19 = 0x40000,
        BUTTON20 = 0x80000,
        BUTTON21 = 0x100000,
        BUTTON22 = 0x200000,
        BUTTON23 = 0x400000,
        BUTTON24 = 0x800000,
        BUTTON25 = 0x1000000,
        BUTTON26 = 0x2000000,
        BUTTON27 = 0x4000000,
        BUTTON28 = 0x8000000,
        BUTTON29 = 0x10000000,
        BUTTON30 = 0x20000000,
        BUTTON31 = 0x40000000,
        BUTTON32 = 0x80000000
    }

    public enum JoystickPOV : uint
    {
        FORWARD = 0,
        FORWARD_RIGHT = 4500,
        RIGHT = 9000,
        RIGHT_BACKWARD = 13500,
        BACKWARD = 18000,
        BACKWARD_LEFT = 22500,
        LEFT = 27000,
        LEFT_FORWARD = 31500
    }

    public enum JoystickIndex : uint
    {
        JOYSTICK1 = 0,
        JOYSTICK2 = 1,
        JOYSTICK3 = 2,
        JOYSTICK4 = 3
    }
}